package com.wehealth;

import java.util.List;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import android.widget.TextView;

public class PlayDayDialog extends Dialog{

	private ListView playday_list;
    private Context context;
    private OnItemClickListener onItemClickListener;
    private String[] playday_select;

	public PlayDayDialog(Context context,int theme,OnItemClickListener onItemClickListener,String[] playday_select) {
		super(context,theme);
		// TODO Auto-generated constructor stub
		this.context = context;
		this.onItemClickListener = onItemClickListener;
		this.playday_select = playday_select;
		
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.playday_dialog);
		
		TextView title =(TextView)findViewById(R.id.play_day_dialog_title);
		String name = context.getResources().getString(R.string.playday_dialog_title);
		title.setText(name);
		
		playday_list =(ListView)findViewById(R.id.playday_list);
		
		
		DepartAdapter adapter = new DepartAdapter(context, playday_select);
		playday_list.setAdapter(adapter);
		playday_list.setOnItemClickListener(onItemClickListener);
	}
	
	
	
	

}
